﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Default.Master" AutoEventWireup="true"
    CodeBehind="MessageBox.aspx.cs" Inherits="AUV5.Web.Pages.MessageBox" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="AUV5.Model" %>
<%@ Import Namespace="AUV5.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {
            var r = new RegExp("/conversations/(all|fromme|tome)$");
            var m = window.location.href.match(r);
            if (m != null) {
                var param = m[0];
                if (param == "") {
                    param = 0;
                }
                var title = "";
                $('#showList ul li').each(function () {
                    var link = $(this).find('a');
                    if (link.attr('href').indexOf(param) != -1) {
                        title = link.text();
                        $(this).addClass("selected").text(title);
                        $('.usertitle').html(title);
                        return;
                    }
                });
            }

            //隐藏地址为空的链接
            $('.redirect').each(function () {
                if (this.href == '') {
                    $(this).hide();
                }
            });
        });
        
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p class="usertitle">
        我的全部消息
    </p>
    <div id="showList" class="massage">
        <div class="massage_left">
            <ul>
                <li><a class="selected" href="/conversations/all">全部对话</a></li>
                <li><a href="/conversations/fromme">我发起的对话</a> </li>
                <li><a href="/conversations/tome">别人发起的对话</a></li>
                <li><a href="/Pages/BulletinList.aspx">系统公告
                    <asp:Label ID="lbBulletinCount" Text="" CssClass="newscount" runat="server" Visible="false" />
                </a></li>
            </ul>
        </div>
        <div class="massage_right">
            <div class="massage_list">
                <div class="newsystem massageinforedbg" runat="server" id="panelBulletin">
                    <a class="bluetxt bold" href="BulletinList.aspx">新系统公告：（<asp:Label ID="lbBulletin"
                        Text="" runat="server" />
                        条） </a>
                    <ul style="margin-left: 10px;">
                        <asp:Repeater ID="repBulletin" runat="server">
                            <ItemTemplate>
                                <li>
                                    <%#(Container.DataItem as AUV5.Model.Bulletin).BulletinContent %>
                                    <a class="bluetxt redirect" href="<%#AUV5.BLL.BulletinBLL.Instance.GetRedirectPath(Container.DataItem as AUV5.Model.Bulletin)%>"
                                        target="_blank">点此查看 </a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <ul id="ulContactList" runat="server">
                </ul>
                <div class="pages">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                        CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页" PageIndexBoxType="DropDownList"
                        PagingButtonLayoutType="Span" SubmitButtonText="Go" TextAfterPageIndexBox="页"
                        TextBeforePageIndexBox="转到" PageSize="10" PagingButtonSpacing="" CurrentPageButtonClass="currentpage"
                        ButtonImageExtension=".jpg" ImagePath="/!images/" ShowPageIndexBox="Never">
                    </webdiyer:AspNetPager>
                </div>
            </div>
        </div>
        <p class="clear">
        </p>
    </div>
</asp:Content>
